package com.jwmp.rbac.domain;

import java.util.List;

public class Module {
    private Long id;
    private String name;
    private List<Permission> permissionList;

    public Module() {
    }

    public Module(String name) {
        this.name = name;
    }

    public Module(String name, List<Permission> permissionList) {
        this.name = name;
        this.permissionList = permissionList;
    }


    public Module(Long id, String name, List<Permission> permissionList) {
        this.id = id;
        this.name = name;
        this.permissionList = permissionList;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Permission> getPermissionList() {
        return permissionList;
    }

    public void setPermissionList(List<Permission> permissionList) {
        this.permissionList = permissionList;
    }

    public String toString() {
        return "Module{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", permissionList=" + permissionList +
                '}';
    }
}